import org.springframework.util.AntPathMatcher;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ZhouWeiBo
 * @create 2022/4/20
 */
public class test {
    public static void main(String[] args) {
        AntPathMatcher antPathMatcher = new AntPathMatcher();
        List<String> urls = new ArrayList<>();
        urls.add("/123");
        urls.add("/abc");
        boolean match = urls.stream().anyMatch( any -> antPathMatcher.match(any,"/abc"));
        System.out.println(match+"");
    }
}
